home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / Xm / XmeDrawArrow.z / XmeDrawArrow
Text File  |  1998-10-30  |  6KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww((((3333XXXX))))          UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV          XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww - Draws a Motif-style, three-dimensional arrow
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           #include <Xm/DrawP.h>
  13.           vvvvooooiiiidddd XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww(
  14.           DDDDiiiissssppppllllaaaayyyy ****ddddiiiissssppppllllaaaayyyy,
  15.           DDDDrrrraaaawwwwaaaabbbblllleeee ddddrrrraaaawwwwaaaabbbblllleeee,
  16.           GGGGCCCC ttttoooopppp____ggggcccc,
  17.           GGGGCCCC bbbboooottttttttoooommmm____ggggcccc,
  18.           GGGGCCCC cccceeeennnntttteeeerrrr____ggggcccc,
  19.           PPPPoooossssiiiittttiiiioooonnnn xxxx,
  20.           PPPPoooossssiiiittttiiiioooonnnn yyyy,
  21.           DDDDiiiimmmmeeeennnnssssiiiioooonnnn wwwwiiiiddddtttthhhh,
  22.           DDDDiiiimmmmeeeennnnssssiiiioooonnnn hhhheeeeiiiigggghhhhtttt,
  23.           DDDDiiiimmmmeeeennnnssssiiiioooonnnn sssshhhhaaaaddddoooowwww____tttthhhhiiiicccckkkknnnneeeessssssss,
  24.           uuuunnnnssssiiiiggggnnnneeeedddd cccchhhhaaaarrrr ddddiiiirrrreeeeccccttttiiiioooonnnn);
  25.  
  26.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  27.           This page documents Motif 2.1.
  28.  
  29.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  30.           XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww draws a Motif-style arrowhead surrounded by
  31.           Motif-style shadows. The routine always draws the arrowhead
  32.           as an equilateral triangle.
  33.  
  34.           This function does not draw the tail of the arrow.
  35.           Furthermore, this function does not allow you to draw a
  36.           broad range of arrow shapes (for example, you cannot draw a
  37.           curved arrow).  You can, however, control the direction that
  38.           the arrowhead faces.
  39.  
  40.           Four of the arguments to XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww (_x, _y, _w_i_d_t_h, and
  41.           _h_e_i_g_h_t) describe a bounding box. The bounding box encloses
  42.           not only the arrowhead but its shadows as well. XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww
  43.           centers the arrowhead within the bounding box.
  44.  
  45.           _d_i_s_p_l_a_y   Specifies the display on which the arrow is to be
  46.                     rendered.
  47.  
  48.           _d_r_a_w_a_b_l_e  Specifies the drawable in which the arrow is to be
  49.                     rendered.  (Typically, this drawable is a widget
  50.                     window.)
  51.  
  52.           _t_o_p__g_c    Specifies the graphics context of the shadow that
  53.                     is generally above and to the left of the
  54.                     triangular arrowhead.
  55.  
  56.           _b_o_t_t_o_m__g_c Specifies the graphics context of the shadow that
  57.                     is generally below and to the right of the
  58.                     triangular arrowhead.
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/24/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww((((3333XXXX))))          UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV          XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww((((3333XXXX))))
  71.  
  72.  
  73.  
  74.           _c_e_n_t_e_r__g_c Specifies the graphics context of the arrow
  75.                     itself.
  76.  
  77.                     If _c_e_n_t_e_r__g_c is _N_U_L_L, the diamond will not be
  78.                     filled, but the shadow will still be drawn.
  79.  
  80.           _x         Specifies the leftmost point of the bounding box.
  81.  
  82.           _y         Specifies the top of the bounding box.
  83.  
  84.           _w_i_d_t_h     Specifies the width of the bounding box.
  85.  
  86.           _h_e_i_g_h_t    Specifies the height of the bounding box.
  87.  
  88.           _s_h_a_d_o_w__t_h_i_c_k_n_e_s_s
  89.                     Specifies the thickness of the arrow's shadows in
  90.                     pixels.  At Motif Release 2.0, the only supported
  91.                     values of _s_h_a_d_o_w__t_h_i_c_k_n_e_s_sare 0 (no shadow), 1, or
  92.                     2.
  93.  
  94.           _d_i_r_e_c_t_i_o_n Specifies the direction of the arrow. The
  95.                     direction must be one of the following values:
  96.                     XXXXmmmmAAAARRRRRRRROOOOWWWW____RRRRIIIIGGGGHHHHTTTT, XXXXmmmmAAAARRRRRRRROOOOWWWW____LLLLEEEEFFFFTTTT, XXXXmmmmAAAARRRRRRRROOOOWWWW____UUUUPPPP, or
  97.                     XXXXmmmmAAAARRRRRRRROOOOWWWW____DDDDOOOOWWWWNNNN.
  98.  
  99.      RRRREEEELLLLAAAATTTTEEEEDDDD
  100.           XXXXmmmmAAAArrrrrrrroooowwwwBBBBuuuuttttttttoooonnnn(3).
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                         (printed 10/24/98)
  130.  
  131.  
  132.  
  133.